package com.lottery.material.entity.article;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Description：文章文字内容信息表
 * Created by 朱正磊 on 2019-04-09 10:17
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_article_text_info")
public class ArticleTextInfo extends BaseEntity {

    private static final long serialVersionUID = 8799543541419018756L;

    @Column(columnDefinition = "int(11) not null comment '文章id（material_article_info表主键）'")
    private Integer articleId;

    @Column(columnDefinition = "int(1) comment '文字收费类型（1：免费内容；2：收费内容）'")
    private Integer textChargeType;

    @Column(columnDefinition = "text comment '内容'")
    private String content;

    @Column(columnDefinition = "int(2) comment '排序'")
    private Integer sort;

}
